package cn.kooki.app.duobao.ui.Fragment.shipaddress;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import butterknife.Bind;
import butterknife.ButterKnife;
import cn.kooki.app.duobao.R;
import cn.kooki.app.duobao.base.BaseFragment;
import cn.kooki.app.duobao.ui.Activity.User.AddShipAddressActivity;

/**
 * Created by xiong on 2015/12/14.
 */
public class AddShopAddressFragment extends BaseFragment implements View.OnClickListener {
    @Bind(R.id.ship_address_blank_add)
    Button shipAddressBlankAdd;

    @Override
    public View setView(LayoutInflater inflater, ViewGroup container) {
        View view = inflater.inflate(R.layout.blank_ship_address, container, false);

        return view;
    }

    @Override
    public void afterView() {
        shipAddressBlankAdd.setOnClickListener(this);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // TODO: inflate a fragment view
        View rootView = super.onCreateView(inflater, container, savedInstanceState);
        ButterKnife.bind(this, rootView);
        return rootView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }

    @Override
    public void onClick(View v) {
        if (v==shipAddressBlankAdd){
            intent(AddShipAddressActivity.class);
        }
    }
}
